package com.ziki.test.extend;

public class StaticParent {
    public int i = 0;

    void set(int i) {
	this.i = i;
    }

    int get() {
	return this.i;
    }
}

class Child1 extends StaticParent {
    public static void main(String[] args) {
	Child1 c1 = new Child1();
	Child2 c2 = new Child2();
	c1.set(2);
	System.out.println(c2.get());
    }
}

class Child2 extends StaticParent {
    void set(int i) {
	this.i = i;
    }

    int get() {
	return this.i;
    }

    public static void main(String[] args) {
	Child1 c1 = new Child1();
	Child2 c2 = new Child2();
	c1.set(3);
	System.out.println(c2.get());
    }
}
class test {
    public static void main(String[] args) {
	Child1 c1 = new Child1();
	Child2 c2 = new Child2();
	c1.set(4);
	System.out.println(c2.get());
    }
}
